export class storeorder {
  id?: number;
  name = '';
                    orderId=''
                  uid=''
                  realName=''
                  userPhone=''
                  userAddress=''
                  freightPrice=''
                  totalNum=''
                  totalPrice=''
                  totalPostage=''
                  payPrice=''
                  payPostage=''
                  deductionPrice=''
                  couponId=''
                  couponPrice=''
                  paid=''
                  payTime=''
                  payType=''
                  createTime=''
                  status=''
                  refundStatus=''
                  refundReasonWapImg=''
                  refundReasonWapExplain=''
                  refundReasonWap=''
                  refundReason=''
                  refundReasonTime=''
                  refundPrice=''
                  deliveryName=''
                  deliveryType=''
                  deliveryId=''
                  gainIntegral=''
                  useIntegral=''
                  backIntegral=''
                  mark=''
                  isDel=''
                  remark=''
                  merId=''
                  isMerCheck=''
                  combinationId=''
                  pinkId=''
                  cost=''
                  seckillId=''
                  bargainId=''
                  verifyCode=''
                  storeId=''
                  shippingType=''
                  clerkId=''
                  isChannel=''
                  isRemind=''
                  isSystemDel=''
                  updateTime=''
                  deliveryCode=''
                  bargainUserId=''
                  type=''
                  proTotalPrice=''
                  beforePayPrice=''
                  isAlterPrice=''
                  outTradeNo=''
        constructor(data?: storeorder) {
    data && this.setProps(data);
  }

  setProps(data: storeorder) {
    (Object.keys(this) as Array<keyof Istoreorder>).forEach((key) => {
      // @ts-ignore
      this[key] = data[key]
    })
  }
}

export type Istoreorder = Omit<storeorder, 'setProps'>